package com.panda.entity.po;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 分类表(TCategory)表实体类
 *
 * @author makejava
 * @since 2022-05-15 11:13:53
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_category")
public class Category extends Model<Category> {

    @TableId
    private Long id;
    //分类名
    private String categoryName;
    //父分类id，如果没有父分类为-1
    private Long pid;
    private String isAudit;
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    //删除标志（0代表未删除，1代表已删除）
    private Integer delFlag;
}

